package com.ruoyi.appointment.service;

import java.util.List;
import com.ruoyi.appointment.domain.Appointment;

/**
 * 技师可预约时段Service接口
 *
 * @author ch
 * @date 2022-07-26
 */
public interface IAppointmentService
{
    /**
     * 查询技师可预约时段
     *
     * @param id 技师可预约时段主键
     * @return 技师可预约时段
     */
    public Appointment selectAppointmentById(Long id);

    /**
     * 查询技师可预约时段列表
     *
     * @param appointment 技师可预约时段
     * @return 技师可预约时段集合
     */
    public List<Appointment> selectAppointmentList(Appointment appointment);

    /**
     * 新增技师可预约时段
     *
     * @param appointment 技师可预约时段
     * @return 结果
     */
    public int insertAppointment(Appointment appointment);

    /**
     * 修改技师可预约时段
     *
     * @param appointment 技师可预约时段
     * @return 结果
     */
    public int updateAppointment(Appointment appointment);

    /**
     * 批量删除技师可预约时段
     *
     * @param ids 需要删除的技师可预约时段主键集合
     * @return 结果
     */
    public int deleteAppointmentByIds(Long[] ids);

    /**
     * 批量逻辑删除技师可预约时段
     *
     * @param ids 需要删除的技师可预约时段主键集合
     * @return 结果
     */
    public int logicDeleteAppointment(Long[] ids,String delType,Long delUser);
    /**
     * 删除技师可预约时段信息
     *
     * @param id 技师可预约时段主键
     * @return 结果
     */
    public int deleteAppointmentById(Long id);

    /**
     * 批量插入
     * @param batchList
     * @return
     */
    public int batchAppointment(List<Appointment>batchList);
}
